
import java.util.Random;
import java.util.Scanner;
public class TestDome {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }

    public static void main3(String[] args) {
        int m = 1;
        int count = 0;
        while (m <= 100) {
            if (m % 15 != 0) {
                m++;
                continue;
            }
            System.out.println(m);
            count++;
            m++;
        }
        System.out.println(count);
    }

    public static void main2(String[] args) {
        int i = 1;
        while (i <= 10) {
            if (i % 3 == 0) {
                System.out.println(i);
                break;
            }
            i++;
        }
    }

    public static void main1(String[] args) {
        int i = 1;
        int sum = 0;
        while (i <= 5) {
            int n = 1;
            int ret = 1;
            while (n <= i) {
                ret *= n;
                n++;
            }
            sum += ret;
            i++;
        }
        System.out.println(sum);
    }

    public static void main5(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int year = scanner.nextInt();

        if (year % 100 == 0) {
            if (year % 400 == 0) {
                System.out.println("实际闰年");
            } else {
                System.out.println("不是闰年");
            }
        } else {
            if (year % 4 == 0) {
                System.out.println("普通闰年");
            } else {
                System.out.println("不是闰年");
            }
        }
    }

    public static void main16(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的姓名");
        String name = scanner.next();//遇到空格就结束了
        System.out.println(name);
        System.out.println("请输入你的年龄");


        public static void main10 (String[]args){
            Random random = new Random();//随机种子
            int radNum = random.nextInt(100);
            System.out.println("生产的随机数字" + radNum);
            Scanner scanner = new Scanner(System.in);
            while (true) {
                System.out.println("请输入你要猜的数字");
                int num = scanner.nextInt();
                if (num > radNum) {
                    System.out.println("猜大了");
                } else if (num == radNum) {
                    System.out.println("猜对了");
                    break;
                } else {
                    System.out.println("猜小了");
                }
            }
        }
    }